package com.ruoyi.product.service.impl;

import com.ruoyi.product.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.service.IProductService;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 参数配置 服务层实现
 *
 * @author ruoyi
 */
@Service
public class ProductServiceImpl implements IProductService {
    @Resource
    private ProductMapper productMapper;

    /**
     * 查询参数配置信息
     *
     * @return 参数配置信息
     */
    @Override
    @Transactional
    public Integer reducePrice() {
        Integer a = 12/0;
        return productMapper.reducePrice();
    }

}